#ifndef DIALOG_H
#define DIALOG_H

#include <QDialog>
#include <QThread>
#include <QString>

class Dialog;

class processThread: public QThread
{
public:
    processThread(Dialog *handle);
    void run(); //声明继承于QThread虚函数 run()
private:
    void *m_handle;
};

namespace Ui {
class Dialog;
}

class Dialog : public QDialog
{
    Q_OBJECT

public:
    explicit Dialog(QWidget *parent = 0);
    ~Dialog();
    void setRGBY(int R, int G, int B, int Y);
    void setRawC(int RawC);
    QString m_uartDev;

private slots:
    void on_pushButton_clicked();

private:
    Ui::Dialog *ui;
    processThread *m_proThread;
    int m_R;
    int m_G;
    int m_B;
    int m_Y;
    int m_RawC;

};

#endif // DIALOG_H
